<?php

/**
 * Return (string) value if it array.
 *
 * @package    SchelkinoBiz
 * @subpackage validator
 * @author     Delight
 */
class sfValidatorPropelMultipleChoice extends sfValidatorPropelChoice
{
  /**
   * @see sfValidatorPropelChoice
   */
  protected function doClean($value)
  {
    $value = parent::doClean($value);

    return is_array( $value ) ? implode( ",", $value ) : $value;
  }
}